package com.wss.merchant.controller;


import com.wss.merchant.domain.CommonResult;
import com.wss.merchant.domain.DlNewCommunity;
import com.wss.merchant.service.DlNewCommunityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 社区表 前端控制器
 * </p>
 *
 * @author wss
 * @since 2021-03-01
 */
@Controller
@RequestMapping("/community")
public class DlNewCommunityController {
    @Autowired
    private DlNewCommunityService dlNewCommunityService;
    //获取社区列表
    @RequestMapping("/getList")
    @ResponseBody
    public CommonResult getList(){
        List<DlNewCommunity> list = dlNewCommunityService.list();
        return new CommonResult(200,"所有社区列表",list);

    }

}

